//
//  networkDefine.h
//  ChatRoom
//
//  Created by lee han on 12/10/12.
//  Copyright (c) 2012 lee han. All rights reserved.
//
#pragma once

#import <Foundation/Foundation.h>

//主路径
#define HOST_IP             @"http://127.0.0.1/jfang/index.php/"
#define URLIMAGE_PRE        @"http://127.0.0.1/jfang"

enum EnumFunctionType
{
    //登陆相关
    NetworkFunctionType_Min = 0,
    NetworkFunctionType_Signup,       //注册
    NetworkFunctionType_Login,      //登陆
    NetworkFunctionType_ModifyPassword, //修改密码
    NetworkFunctionType_Logout,   //注销
    
    NetworkFunctionType_AddressList,      //地址列表
    NetworkFunctionType_AddAddress,      //添加地址
    NetworkFunctionType_ModifyAddress,      //修改地址
    NetworkFunctionType_DelAddress,      //删除地址
    
    NetworkFunctionType_CategoryList,   //分类列表
    
    NetworkFunctionType_ProductList,   //产品列表   =10
    NetworkFunctionType_ProductInfo,   //产品信息
    
    NetworkFunctionType_AddShopCar,     //添加到购物车
    
    NetworkFunctionType_BurstSectionList, //爆款列表
    
    NetworkFunctionType_Collect,           //收藏
    NetworkFunctionType_CancenCollect,      //取消收藏
    NetworkFunctionType_DeleteFromShopCar,  //从购物车中删除
    
    NetworkFunctionType_search,  //搜索
    
    NetworkFunctionType_cellection,  //收藏数据
    
    NetworkFunctionType_ShopcarList,    //购物车产品列表
    
    NetworkFunctionType_SaleList,    //特卖产品列表 = 20
    
    NetworkFunctionType_AddressSelect, //默认地址选择
    
    NetworkFunctionType_CreateOrder,      //创建订单
    
    NetworkFunctionType_OrderList,        //订单列表
    NetworkFunctionType_OrderDetail,       //订单产品列表
    
    NetworkFunctionType_OrderReceive,       //确认收货
    NetworkFunctionType_OrderRebuy,         //再次购买，添加订单商品到购物车
    
    NetworkFunctionType_Complain,         //投诉
    
    NetworkFunctionType_ProductDetail,   //产品信息
    
    NetworkFunctionType_ExpDetail,   //产品信息
    
    NetworkFunctionType_GetVerifyCode,   //获取验证码  = 30
    
    NetworkFunctionType_Count
};

//获取接口名称
NSString* getFunctionName(NSInteger type);
